Computer Science Lesson Plan
Class: 7 - Lesson: 13 Music and Translate

Purpose: To introduce the Music and Translate extensions in Scratch, and to use AI tools for generating music and translating text.

No. of Classes

One or two classes (teacher's decision).

Material Required

Scratch 3.0, internet.

Prior Knowledge

Students should know:

  • The basic Scratch blocks - events, motion, looks and control.
  • How to add extensions in Scratch.
  • Exercises

    Exercise 1



    1. Insert a boy sprite and a cat sprite. The cat gives instructions about the music. When you press the up, down, left, right or space key, different music plays and the boy dances. You will need to write a set of blocks to generate the music, using the Music extension.

    Exercise 2



    1. Insert a girl sprite that asks the user for their name and a language. The sprite then says the user's name in that language. Make sure the language is available in the language drop-down.

    Exercise 3



    1. Use AI-powered tools to translate text into several languages.

    Solutions



  • Link to copy the solution program for Exercise 1.
  • Link to copy the solution program for Exercise 2.
  • Link to view the solution video for Exercise 3.

  • Teacher Instructions
    1. Before starting, ensure students are familiar with the basic Scratch blocks - events, motion, looks and operators - and know how to create simple programs.
    2. Teach students how to add the Music and Translate extensions in Scratch. Give a short demonstration of each - playing a note and translating a sentence.
    3. Explain what a language is, and why translation can be useful in projects.
    4. POINTS TO PONDER: What is neural machine translation?
    5. If you want to use Scratch online, click here.